<?php

class model_module_banners extends database_mysql {

    public function model__module_getUserData($id) {
        $str = "SELECT
                    `use`.ID,
                    `use`.`Password`,
                    `use`.Fullname
                FROM
                    " . prefix . "users AS `use`
                WHERE
                    `use`.ID = $id";
        $row = parent::mysql_fetch_one_rows($str);
        parent::mysql_close_connection();

        return $row;
    }

    public function model__module_updateUserData($id, $pass) {

        $update = "UPDATE " . prefix . "users 
                    SET 
                        Password ='" . $pass .
                "'  WHERE 
                        `ID` = '" . $id . "'";
        
        $done = parent::mysql_update_insert($update);

        parent::mysql_close_connection();
        return $done;
    }

}